package main

import (
	"go-admin/app/routes"
	"go-admin/app/utils/ginutil"
	_ "go-admin/bootstrap"
	_ "go-admin/docs/swagger"
	_ "go-admin/plugins"
)

// @title Go-Admin API
// @version 1.0
// @description 基于Gin框架的快速开发脚手架API文档
// @termsOfService https://github.com/your-repo/go-admin

// @contact.name API Support
// @contact.url https://github.com/your-repo/go-admin/issues
// @contact.email your-email@example.com

// @license.name MIT
// @license.url https://github.com/your-repo/go-admin/blob/master/LICENSE

// @host localhost:8080
// @BasePath /api

func main() {

	// 获取Gin引擎实例
	engine := ginutil.GetEngine()
	// 初始化路由
	routes.InitRoutes(engine)
	// 初始化插件路由
	ginutil.InitPluginRoutes(engine)
	// 启动服务器
	_ = ginutil.StartServer(engine)
}
